#{extends 'admin.html' /}
#{set title:'Administration : Création d\'un Vehicule' /}
#{if flash.error}
    <h4 class="alert_error">${flash.error}</h4>
#{/if}



<article class="module width_full">
    <header><h3 class="tabs_involved">Ajouter un Vehicule</h3>
        <ul class="tabs">
            <li><a href="@{Groups.list}">Annuler</a></li>
        </ul>

    </header>

    <div class="entity">
        #{form @Vehicules.save(), id:'createForm'}
        <div class="module_content">
        <fieldset>
                <label>Type de vehicule : </label>
                <input type="text" name="entity.type" value="${entity?.type}"/>
                <span class="error">${errors.forKey('entity.type')}</span>
                
                
            </fieldset>
            <fieldset>
                <label>Marque du vehicule : </label>
                <input type="text" name="entity.brand" value="${entity?.brand}"/>
                <span class="error">${errors.forKey('entity.brand')}</span>
                
                
            </fieldset>
            <fieldset>
                <label>Modèle du vehicule : </label>
                <input type="text" name="entity.model" value="${entity?.model}"/>
                <span class="error">${errors.forKey('entity.model')}</span>
                

            </fieldset>
            <fieldset>
                <label>Code du Vehicule : </label>
                <input type="text" name="entity.code" value="${entity?.code}"/>
                <span class="error">${errors.forKey('entity.code')}</span>
                

            </fieldset>
            <input type="submit" name="submit" value="Ajouter !" class="alt_btn"/>
         </div>
         
		#{/form}
	</div>
	
</article>